package com.subaiqiao.yunshiyuan.entrance.ysy.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author 曹朝禹
 * @since 2022-05-13
 */
@Getter
@Setter
@ApiModel(value = "ProductVO对象", description = "")
public class ProductVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品信息编号")
    @TableId(value = "product_id", type = IdType.AUTO)
    private Integer productId;

    @ApiModelProperty("商品条形码")
    private String productBar;

    @ApiModelProperty("商品类型")
    private Integer productType;

    @ApiModelProperty("商品类型名称")
    private String productCategoryName;

    @ApiModelProperty("配置名称")
    private String sysConfigName;

    @ApiModelProperty("商品货架位置")
    private Integer productPlaceAddress;

    @ApiModelProperty("配置内容")
    private String sysConfigContent;

    @ApiModelProperty("商品层数")
    private Integer productPlies;

    @ApiModelProperty("推荐指数")
    private Integer recommendationIndex;

    @ApiModelProperty("热门指数")
    private Integer hotIndex;

    @ApiModelProperty("库存数量")
    private Integer repertory;

    @ApiModelProperty("销量")
    private Integer salesVolume;

    @ApiModelProperty("浏览量")
    private Integer productCheckQuantity;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDatetime;

    @ApiModelProperty("商品状态(0在售 1售罄 2下架)")
    private Integer productStatus;

    @ApiModelProperty("商品简介")
    private String productIntro;

    @ApiModelProperty("推荐图")
    private String productCover;

    @ApiModelProperty("轮播图")
    private String productBanner;

    @ApiModelProperty("商品溯源产品信息")
    private String productTraceSource;

    @ApiModelProperty("商品价格")
    private BigDecimal prodcutPrice;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDatetime;

    @ApiModelProperty("乐观锁")
    @Version
    private Integer version;

}
